﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"  AutoEventWireup="true" CodeFile="allRq.aspx.cs" Inherits="CheckLeave_allRq" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
    <table width="550" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td valign="top" style="height: 20px; width: 554px;">
            &nbsp;<asp:Panel ID="Panel1" runat="server" Height="21px" Visible="False" Width="553px">
                &nbsp;请假理由：<asp:Label ID="lblReason" runat="server" Width="456px"></asp:Label></asp:Panel>
            <asp:Panel ID="Panel2" runat="server" Height="19px" Visible="False" Width="549px">
                否决理由：<asp:TextBox ID="txtDenyReason" runat="server" Width="301px"></asp:TextBox>
                <asp:Button ID="Button1" runat="server" Text="确定" OnClick="Button1_Click" />
                <asp:Button ID="btnCancel" runat="server" Text="取消" OnClick="btnCancel_Click" />
                <br />
                <asp:Label ID="Label1" runat="server" ForeColor="Red" Text="否决理由不能为空" Visible="False"
                    Width="133px"></asp:Label></asp:Panel>
        </td>
      </tr>
      <tr>
        <td valign="top" style="height: 19px; width: 554px;" rowspan="2">
            <asp:GridView ID="grdResult" runat="server" AutoGenerateColumns="False" CellPadding="4"
                ForeColor="#333333" GridLines="None" OnRowCommand="grdResult_RowCommand" OnSelectedIndexChanged="grdResult_SelectedIndexChanged" Width="674px">
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:BoundField HeaderText="员工姓名" DataField="EmployeeName" />
                    <asp:BoundField HeaderText="开始时间" DataField="StartTime" />
                    <asp:BoundField HeaderText="结束时间" DataField="EndTime" />
                    <asp:BoundField HeaderText="提交时间" DataField="SubmitTime" />
                    <asp:BoundField HeaderText="小时数" DataField="Hours" />
                    <asp:ButtonField Text="请假事由..." CommandName="Select" />
                    <asp:ButtonField ButtonType="Button" Text="批准" CommandName="Agree" />
                    <asp:ButtonField ButtonType="Button" Text="否决" CommandName="Deny" />
                </Columns>
                <RowStyle BackColor="#EFF3FB" />
                <EditRowStyle BackColor="#2461BF" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
        </td>
      </tr>
      <tr>
      </tr>
    </table>
        </div>
</asp:Content>